Skip to content

Accessibility + UX improvements across the UI#52

Merged
omroy07 merged 3 commits into
omroy07:mainfrom
Aditya8369:48
Jun 9, 2026
Merged

Accessibility + UX improvements across the UI#52
omroy07 merged 3 commits into
omroy07:mainfrom
Aditya8369:48

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Implemented accessibility/UX improvements for quiz pages:

quiz/nlmquiz.html

Added “Skip to content” link.
Wrapped quiz in a

landmark.
Added role="radiogroup" for the options container and aria-live region (#sr-status).
Added dialog semantics (role="dialog", aria-modal="true", aria-labelledby) for warning + submit popups.
Improved results section semantics (
with aria-labelledby) and added tabindex for focus.
quiz/nlmquiz.css

Added skip-link + .sr-only styles.
Added consistent visible focus styling via :focus-visible and .option:focus-visible / button:focus-visible.
Added mobile grid behavior and reduced-motion support.
quiz/nlmquiz.js

Added aria-live announcements for question text, selection, correct/incorrect feedback, and final score.
Added focus management:
Popup open focuses the primary button.
Popup close restores focus.
Results show focuses the results heading.
Improved radiogroup semantics by setting role="radio" and aria-checked on option buttons.
quiz/motionquiz.html

Added “Skip to content” link.
Added

landmark, radiogroup semantics, and aria-live region.
Added dialog semantics for popups.
Improved results section semantics.
quiz/motionquiz.css

Added skip-link/sr-only styles and :focus-visible focus rings.
Added mobile + reduced-motion CSS.
quiz/motionquiz.js

Added aria-live announcements for question/selection/feedback/final score.
Added focus management for popups and results.

closes #48

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aditya8369

Copy link
Copy Markdown
Contributor Author

@omroy07 can you give VETERAN label to this PR, as I have improved accessibility and UX for all quizzes

@omroy07 omroy07 merged commit c9710a9 into omroy07:main Jun 9, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessibility + UX improvements across the UI

2 participants